package com.shw.loco.database;

/**
 * 
 * @author HAHA
 * 
 */
public enum DataType {
	RFID, COORDINATE,AREA;

	public static DataType fromString(String string) {
		if (string.equals(RFID.toString()))
			return RFID;
		if (string.equals(COORDINATE.toString()))
			return COORDINATE;
		if (string.equals(AREA.toString()))
			return AREA;

		return null;
	}

}
